package com.jeeplus.common.utils;

/**
 * @author : lbk.
 * @version : 1.0
 */
public class RedisProperty {

    private static int port;
    private static String ip="";


    static {

        try {
            PropertiesLoader loader = new PropertiesLoader("/j2cache/j2cache.properties");
            port = Integer.parseInt(loader.getProperty("redis.port"));
            ip = loader.getProperty("redis.host");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static int getPort() {
        return port;
    }


    public static void setPort(int port) {
        RedisProperty.port = port;
    }


    public static String getIp() {
        return ip;
    }


    public static void setIp(String ip) {
        RedisProperty.ip = ip;
    }



}
